import 'package:flutter/material.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      theme: ThemeData(
        primaryColor: Colors.yellow
      ),
      home: Scaffold(
        appBar: AppBar(
          title: const Text('你好Flutter'),
        ),
        body: const MyHomePage(),
      ),
    );
  }
}

class MyHomePage extends StatelessWidget {
  const MyHomePage({super.key});

  @override
  Widget build(BuildContext context) {
    return ListView(
      children: [
        ListTile(leading: Icon(Icons.home), title: Text('首页'),),
        Divider(),
        ListTile(leading: Icon(Icons.settings), title: Text('设置'),),
        Divider(),
        ListTile(leading: Icon(Icons.person), title: Text('个人'),),
        Divider(),
        ListTile(
          leading: Icon(Icons.assessment, color: Colors.red,),
          title: Text('全部订单'),
        ),Divider(),
        ListTile(
          leading: Icon(Icons.assessment, color: Colors.orange,),
          title: Text('待付款'),
        ),Divider(),
        ListTile(
          leading: Icon(Icons.assessment, color: Colors.blue,),
          title: Text('我的收藏'),
        ),Divider(),
        ListTile(
          leading: Icon(Icons.assessment, color: Colors.black45,),
          title: Text('在线客服',),
          trailing: Icon(Icons.chevron_right_rounded),
        ),Divider(),
      ],
    );
  }
}